﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.Composition;
using Microsoft.Practices.Prism.Logging;
using Microsoft.Practices.Prism.MefExtensions.Modularity;
using Microsoft.Practices.Prism.Modularity;
using Microsoft.Practices.Prism.Regions;
using Microsoft.Practices.ServiceLocation;
using System.Windows.Controls;


namespace SearchScreen.AdditionalCriteriaModule
{

    [ModuleExport(typeof(AdditionalCriteriaModule))]
    public class AdditionalCriteriaModule : IModule
    {
        IRegionManager _regionManager;

        public void Initialize()
        {
            _regionManager = (IRegionManager)ServiceLocator.Current.GetInstance(typeof(IRegionManager));
            _regionManager.Regions["AdditionalCriteria"].Add(new AdditionalCriteriaView());
        }
    }
}
